package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 加油订单
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_stroke_order_gas")
public class UserStrokeOrderGas extends Model<UserStrokeOrderGas> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private String orderId;
    /**
     * 加油站公司ID
     */
    @TableField("gas_station_company_id")
    private String gasStationCompanyId;
    /**
     * 加油站公司名称
     */
    @TableField("gas_station_company_name")
    private String gasStationCompanyName;
    /**
     * 油号
     */
    @TableField("octane_number")
    private Integer octaneNumber;
    /**
     * 枪号
     */
    @TableField("nozzle_number")
    private String nozzleNumber;
    /**
     * 单价
     */
    @TableField("price")
    private BigDecimal price;
    /**
     * 行程ID
     */
    @TableField("sid")
    private String sid;
    /**
     * 加油量
     */
    @TableField("oil_volume")
    private Double oilVolume;
    /**
     * 加油量
     */
    @TableField("station_type")
    private String stationType;

    public void freeData() {
        this.orderId = null;
        this.gasStationCompanyId = null;
        this.gasStationCompanyName = null;
        this.octaneNumber = null;
        this.nozzleNumber = null;
        this.price = null;
        this.sid = null;
        this.oilVolume = null;
        this.stationType = null;
    }

}
